﻿using OASystem.DAL;
using OASystem.Model;
using OASystem.ViewModel;

namespace OASystem.BLL.IService
{
    //记得记得把Userinfo修改成自己需要的实体
    public interface IRecodeService : IBaseRepository<Tasklist>, IDenpendecy
    {
        /// <summary>
        /// 显示列表
        /// </summary>
        /// <param name="userId">当前用户ID</param>
        /// <param name="oneer">执行人</param>
        /// <param name="TaskTiltle">任务标题</param>
        /// <param name="CompletionTime">发布时间</param>
        /// <returns></returns>
        ResponseResult Display(int userId, string oneer, string TaskTiltle, string CompletionTime);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="ID">所选行ID</param>
        /// <returns></returns>
        ResponseResult Delete(int ID);

        /// <summary>
        /// 完成状态
        /// </summary>
        /// <param name="id">所选行ID</param>
        /// <param name="status">修改后的状态</param>
        /// <returns></returns>
        ResponseResult Updater(int id, int status);
    }
}
